<!DOCTYPE html>
<html lang="zh-CN">
<meta charset="utf-8" />
<head>
<title>编辑网站统计数据 <?php echo $this->config->item('title');?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"	href="<?php echo base_url()?>public/css/bootstrap.min.css">
<link rel="stylesheet" href="<?php echo base_url()?>public/css/style.css">
</head>
<body>
	<script src="<?php echo base_url()?>public/js/jquery-2.0.2.min.js"></script>
	<script src="<?php echo base_url()?>public/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url()?>public/js/bootstrap-confirm.js"></script>
	<script src='<?php echo base_url()?>public/js/bootbox.min.js'></script>
	<script src='<?php echo base_url()?>public/js/jquery.form.js'></script>
	<script src='<?php echo base_url()?>public/js/ssi_common.js'></script>
	<script type="text/javascript">
	jQuery(function($) {
		$('#main_from').ajaxForm({
			dataType:  'json',
			beforeSubmit:  showRequest,
			success:   processJson
		});
	
		function showRequest(formData, jqForm, options) {
		}
	
		function processJson(data) {
			if (data.result==false) {
				bootbox.alert(data.message, function() {
				});
				$('button[type="submit"]').removeClass('disabled');
			}else{
				window.location.href=data.redirect_url;
			}
		}
	});
	</script>
	<div role="navigation" class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand">SSI后台管理系统</a>
			</div>
			<div class="collapse navbar-collapse navbar-right">
				<ul class="nav navbar-nav">
					<li><a href="<?php echo base_url()?>" class="navbar-link">首页</a></li>
					<li><a href="<?php echo base_url()."index.php/common_login_user_set"?>" class="navbar-link">超级管理员</a></li>
					<li><a href="<?php echo base_url()?>index.php/common_login_manage/logout" class="navbar-link">退出</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="col-xs-3">
				<?php echo $user_menu?>
			</div>
			<div class="col-md-9">
				<div class="panel panel-default">
					<div class="panel-heading">编辑统计数据</div>
					<div class="panel-body">
						<form method="post" enctype="multipart/form-data" id="main_from" action="<?php echo base_url()."index.php"?>/website_statistics_manage/update_statistics"
							class="form-horizontal">
							<div  class="form-group">
								<label for="media_num" class="control-label col-sm-3">媒体数量</label>
								<div class="col-sm-5">
									<input id="media_num" type="text" name="media_num" required value="<?php echo $statistics_info['media_num']?>"  class="form-control">
								</div>
							</div>
							<div  class="form-group">
								<label for="monitor_num" class="control-label col-sm-3">监控数量</label>
								<div class="col-sm-5">
									<input id="monitor_num" type="text" name="monitor_num" required value="<?php echo $statistics_info['monitor_num']?>"  class="form-control">
								</div>
							</div>
							<div  class="form-group">
								<label for="brand_num" class="control-label col-sm-3">品牌数量</label>
								<div class="col-sm-5">
									<input id="brand_num" type="text" name="brand_num" required value="<?php echo $statistics_info['brand_num']?>"  class="form-control">
								</div>
							</div>
							<div  class="form-group">
								<label for="vendor_num" class="control-label col-sm-3">供应商数量</label>
								<div class="col-sm-5">
									<input id="vendor_num" type="text" name="vendor_num" required value="<?php echo $statistics_info['vendor_num']?>"  class="form-control">
								</div>
							</div>
							<div  class="form-group">
								<label for="city_num" class="control-label col-sm-3">城市数量</label>
								<div class="col-sm-5">
									<input id="city_num" type="text" name="city_num" required value="<?php echo $statistics_info['city_num']?>"  class="form-control">
								</div>
							</div>
							<div  class="form-group">
								<label for="increase_proportion" class="control-label col-sm-3">同比增幅</label>
								<div class="col-sm-5">
									<input id="increase_proportion" type="text" name="increase_proportion" required value="<?php echo $statistics_info['increase_proportion']?>"  class="form-control">
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-3 col-sm-10">
									<button type="button" onclick='from_check_login($("#main_from"),"<?php echo base_url()?>")' class="btn btn-primary">保存</button>
									<a href="javascript:void()" onclick='history.back()' >返回</a>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div  class="back-to" id="toolBackTop">
	<a title="返回顶部" onclick="window.scrollTo(0,0);return false;" href="#top" class="back-top">
	返回顶部</a>
	<a title="返回底部" onclick="window.scrollTo(0,document.body.scrollHeight);return false;" href="#bottom" class="back-bottom">
	返回底部</a>
</div>
</body>
</html>
